<template>
	<view>
		<swiper :vertical="true" class="box">
			<swiper-item v-for="item in 10" :key="item" class="spitem">
				<cover-view class="bg-video">
					{{item}}
					<video src="https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/a876efc0-4f35-11eb-97b7-0dc4655d6e68.mp4"></video>
				</cover-view>
				<view class="right">
					<view @click="dz">
						<image src="../../static/images/d1.png" v-if="!flag1"></image>
						<image src="../../static/images/d2.png" v-if="flag1"></image>
						<view>点赞</view>
					</view>
					<view>
						<image src="../../static/images/pl.png">
						<view>评论</view>
					</view>
					<view>
						<image src="../../static/images/zf.png">
						<view>转发</view>
					</view>
				</view>
			</swiper-item>
		</swiper>
		<tabbar flag1="4"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				flag1: false
			}
		},
		methods: {
			dz() {
				this.flag1 = !this.flag1
			}
		}
	}
</script>

<style scoped>
	.box {
		background-color: #222;
		color: #FFFFFF;
		text-align: center;
		height: 100vh;
		box-sizing: border-box;
		overflow: hidden;
	}

	.spitem {
		height: 50vh;
		box-sizing: border-box;
		overflow: hidden;
	}

	.spitem>.bg-video {
		margin-top: 10vh;
		background-color: #000;
		height: 40vh;
		line-height: 40vh;
		font-size: 30px;
		position: relative;
	}
	video{
		width: 100%;
	}
	.spitem image {
		width: 28px;
		height: 28px;
	}
	.right{
		position: absolute;
		right: 0px;
	}
	.right>view{
		margin:15px 20px;
	}
	>>>.uni-cover-view{
		
	}
</style>
